package com.hse.gui;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Created by IntelliJ IDEA.
 * User: Nosov Alexander
 * Date: 22.05.2009
 * Time: 17:07:14
 */
public class AboutDialog extends JDialog {
    private JPanel contentPane;
    private JButton buttonOK;
    private JLabel textLabel;
    private String text = "Sensor Anal yser 3000.  Created by URPO developers group. Project home page: http://code.google.com/p/sensoranalyzer/ Our e-mail: urpodevelopers@gmail.com  If you like our program, fill free to make a beer donation.";

    public AboutDialog() {
        setTitle("About");
        setContentPane(contentPane);
        setModal(true);
        getRootPane().setDefaultButton(buttonOK);
        buttonOK.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                onOK();
            }
        });
    }

    private void onOK() {
// add your code here
        dispose();
    }

}
